import request from '@/utils/request'

// 获取员工列表
export function getEmployeeListAPI(params) {
  return request({
    url: '/park/sys/user',
    params
  })
}

// 查询所有角色
export function getRoleListAPI() {
  return request({
    url: '/park/sys/role'
  })
}
// 添加新增角色
export function addEmpolyeeListAPI(data) {
  return request({
    url: '/park/sys/user',
    method: 'post',
    data
  })
}
// 删除用户
export function delEmployeeAPI(id) {
  return request({
    url: `/park/sys/user/${id}`,
    method: 'delete'
  })
}
// 编辑用户
export function editUserAPI(data) {
  return request({
    url: '/park/sys/user',
    method: 'put',
    data
  })
}
// 重置用户密码
export function editPasswordAPI(data) {
  return request({
    url: '/park/sys/user/resetPwd',
    method: 'put',
    data
  })
}
